package com.tuyue.police.pojo;

import javax.persistence.*;

/**
 * @Author: 王金海
 * @Description: 规则2
 * @Date: Created by Administrator on 2018/3/13.
 * @Modified By:
 */
@Entity
public class Rule2 {
    private long rule2Id;
    private long rule2RuleId;
    private long rule2UserId;
    private String rule2UserTel;

    @Transient
    public String getRule2UserTel() {
        return rule2UserTel;
    }

    public void setRule2UserTel(String rule2UserTel) {
        this.rule2UserTel = rule2UserTel;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "rule2_id")
    public long getRule2Id() {
        return rule2Id;
    }

    public void setRule2Id(long rule2Id) {
        this.rule2Id = rule2Id;
    }

    @Basic
    @Column(name = "rule2_rule_id")
    public long getRule2RuleId() {
        return rule2RuleId;
    }

    public void setRule2RuleId(long rule2RuleId) {
        this.rule2RuleId = rule2RuleId;
    }

    @Basic
    @Column(name = "rule2_user_id")
    public long getRule2UserId() {
        return rule2UserId;
    }

    public void setRule2UserId(long rule2UserId) {
        this.rule2UserId = rule2UserId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Rule2 rule2 = (Rule2) o;

        if (rule2Id != rule2.rule2Id) return false;
        if (rule2RuleId != rule2.rule2RuleId) return false;
        if (rule2UserId != rule2.rule2UserId) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = (int) (rule2Id ^ (rule2Id >>> 32));
        result = 31 * result + (int) (rule2RuleId ^ (rule2RuleId >>> 32));
        result = 31 * result + (int) (rule2UserId ^ (rule2UserId >>> 32));
        return result;
    }
}
